package com.example.decorator_demo;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author huu
 * @create 2025-08-23-17:38
 * @Description: 希望自定义一个注解能够在这个返回上自动加入一个时间戳
 */
@RestController
@RequestMapping("/api")
public class MyController {

    //TODO 没办法进入调式，待解决，装饰器模式下
    @PostMapping
    public Map<String, Object> myController(@RequestBody Map<String, Object> json)
    {
        return json;
    }
}
